'use client'

import { AddUserDialog } from '@/components/AddUserDialog'

export default function TestAddUser() {
  const handleUserAdded = () => {
    console.log('用户添加成功，需要刷新列表')
    alert('用户添加成功！')
  }

  return (
    <div className="p-8">
      <h1 className="text-2xl font-bold mb-6">测试添加用户功能</h1>
      <AddUserDialog onUserAdded={handleUserAdded} />
    </div>
  )
}
